package cn.ibizlab.odoo.core.odoo_base_import.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_base_import.domain.Base_import_tests_models_o2m_child;
import cn.ibizlab.odoo.core.odoo_base_import.filter.Base_import_tests_models_o2m_childSearchContext;

/**
 * 实体[Base_import_tests_models_o2m_child] 服务对象接口
 */

public interface IBase_import_tests_models_o2m_childService{
     boolean remove(Integer id) ;
     boolean create(Base_import_tests_models_o2m_child base_import_tests_models_o2m_child) ;
     void updateBatch(List<Base_import_tests_models_o2m_child> base_import_tests_models_o2m_childs, int batchSize) ;
     void createBatch(List<Base_import_tests_models_o2m_child> base_import_tests_models_o2m_childs, int batchSize) ;
     Base_import_tests_models_o2m_child get(Integer id) ;
     Base_import_tests_models_o2m_child get(Base_import_tests_models_o2m_child base_import_tests_models_o2m_child) ;
     boolean update(Base_import_tests_models_o2m_child base_import_tests_models_o2m_child) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Base_import_tests_models_o2m_child> searchDefault(Base_import_tests_models_o2m_childSearchContext context) ;

    /**
     * 根据测试:基本导入模型，一对多查询
     */
     Page<Base_import_tests_models_o2m_child> selectByOdoo_parent(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Base_import_tests_models_o2m_child> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Base_import_tests_models_o2m_child> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Base_import_tests_models_o2m_child convert2Domain(cn.ibizlab.odoo.core.client.model.Ibase_import_tests_models_o2m_child model ,Base_import_tests_models_o2m_child domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ibase_import_tests_models_o2m_child convert2Model(Base_import_tests_models_o2m_child domain , cn.ibizlab.odoo.core.client.model.Ibase_import_tests_models_o2m_child model);

}
